package com.starrtc.demo.imclient.clientCommand;


public class LoginConsole implements console {

    public static LoginConsole instance;

    public static LoginConsole getInstance(){
        if(instance == null){
            instance = new LoginConsole();
        }
        return instance;
    }

    private LoginConsole(){

    }

    public static final String KEY = "1";

    private String userName;
    private String password;

    @Override
    public void exec(String message) {
//
//        System.out.println("请输入登录信息，格式为：用户名@密码 ");
//        String s = scanner.next();
//        String[] array = s.split("@");
//
//        userName = array[0];
//        password = array[1];
//        log.info("输入正确, 您输入的用户id是: {},密码是{}", userName, password);
    }

    @Override
    public String getKey() {
        return KEY;
    }

    @Override
    public String getTip() {
        return "登录";
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
